
<?php $__env->startSection('title', '系统操作日志列表'); ?>

<?php $__env->startSection('css'); ?>
<!--时间选择插件-->
<link rel="stylesheet" href="<?php echo e(asset('static/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.css')); ?>">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('content'); ?>
    <div class="row">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header">
                    <form class="pull-left search-bar" method="post" action="<?php echo e(url('admin/admin_actionlog/index')); ?>">
                        <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>"/>
                        <div class="col-xs-3 m-t-10">
                            <div class="input-group">
                                <span class="input-group-addon" id="basic-addon1">用户名</span>
                                <input type="text" class="form-control" name="name" placeholder="请输入用户名" aria-describedby="basic-addon1" value="<?php if(!empty($params['name'])){ ?><?php echo e($params['name']); ?><?php }?>">
                            </div>
                        </div>
                        <div class="col-xs-3 m-t-10">
                            <div class="input-group">
                                <span class="input-group-addon" id="basic-addon1">姓名</span>
                                <input type="text" class="form-control" name="true_name" placeholder="请输入姓名" aria-describedby="basic-addon1" value="<?php if(!empty($params['true_name'])){ ?><?php echo e($params['true_name']); ?><?php }?>">
                            </div>
                        </div>
                        <div class="col-xs-3 m-t-10">
                            <div class="input-group">
                                <span class="input-group-addon" id="basic-addon1">操作模块</span>
                                <select class="form-control" id="example-select" name="module">
                                    <option value="">请选择</option>
                                    <?php $__currentLoopData = $module_list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=>$v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <option value="<?php echo e($v['log_module']); ?>" <?php if(isset($params['module']) && $params['module'] == $v['log_module']){ ?>selected<?php } ?>><?php echo e($v['log_module']); ?></option>
                                    <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                </select>
                            </div>
                        </div>
                        <div class="col-xs-3 m-t-10">
                            <div class="input-group">
                                <span class="input-group-addon" id="basic-addon1">操作状态</span>
                                <select class="form-control" id="example-select" name="type">
                                    <option value="">请选择</option>
                                    <option value="add" <?php if(isset($params['type']) && $params['type'] == 'add'){ ?>selected<?php } ?>>新增</option>
                                    <option value="edit" <?php if(isset($params['type']) && $params['type'] == 'edit'){ ?>selected<?php } ?>>修改</option>
                                    <option value="delete" <?php if(isset($params['type']) && $params['type'] == 'delete'){ ?>selected<?php } ?>>删除</option>
                                </select>
                            </div>
                        </div>
                        <div class="col-xs-3 m-t-10">
                            <div class="input-group">
                                <span class="input-group-addon" id="basic-addon1">操作内容</span>
                                <input type="text" class="form-control" name="remark" placeholder="请输入操作内容" aria-describedby="basic-addon1" value="<?php if(!empty($params['remark'])){ ?><?php echo e($params['remark']); ?><?php }?>">
                            </div>
                        </div>
                        <div class="col-xs-6 m-t-10">
                            <div class="input-group">
                                <span class="input-group-addon" id="basic-addon1">时间查询</span>
                                <input class="form-control js-datetimepicker" type="text" id="begin_time" name="begin_time" placeholder="请选择开始时间" value="<?php if(!empty($params['begin_time'])){ ?><?php echo e($params['begin_time']); ?><?php }?>" data-side-by-side="true" data-locale="zh-cn" data-format="YYYY-MM-DD" />
                                <span class="input-group-addon"><i class="mdi mdi-chevron-right"></i></span>
                                <input class="form-control js-datetimepicker" type="text" id="end_time" name="end_time" placeholder="请选择结束时间" value="<?php if(!empty($params['end_time'])){ ?><?php echo e($params['end_time']); ?><?php }?>" data-side-by-side="true" data-locale="zh-cn" data-format="YYYY-MM-DD" />
                            </div>
                        </div>
                        <div class="col-xs-3 m-t-10">
                            <div class="input-group">
                                <button class="btn btn-info btn-w-xs m-r-10 submit-btn" type="submit">查询</button>
                                <button class="btn btn-secondary btn-w-xs m-r-10 reset-btn" type="button">重置</button>
                                <button class="btn btn-success btn-w-xs m-r-10 export-btn" type="button">导出</button>
                            </div>
                        </div>
                    </form>
                </div>
                <div class="card-body">
                    <div class="table-responsive">
                        <table class="table table-bordered table-hover table-striped">
                            <thead>
                            <tr>
                                <th width="10%">管理员</th>
                                <th width="10%">姓名</th>
                                <th width="10%">操作模块</th>
                                <th width="10%">操作状态</th>
                                <th width="35%">操作内容</th>
                                <th width="10%">操作ip</th>
                                <th width="15%">操作时间</th>
                            </tr>
                            </thead>
                            <tbody>
                            <?php if(count($list) > 0): ?>
                                <?php $__currentLoopData = $list; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $k=>$v): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                    <tr>
                                        <td><?php echo e($v->log_name); ?></td>
                                        <td><?php echo e($v->log_true_name); ?></td>
                                        <td><?php echo e($v->log_module); ?></td>
                                        <td>
                                            <?php if($v->log_type == 'add'): ?>
                                                <a href="javascript:void(0)" class="label label-success">新增</a>
                                            <?php elseif($v->log_type == 'edit'): ?>
                                                <a href="javascript:void(0)" class="label label-info">修改</a>
                                            <?php else: ?>
                                                <a href="javascript:void(0)" class="label label-danger">删除</a>
                                            <?php endif; ?>
                                        </td>
                                        <td>
                                            <?php echo e($v->log_remark); ?>

                                        </td>
                                        <td>
                                            <?php echo e($v->log_ip); ?>

                                        </td>
                                        <td>
                                            <?php echo e(date('Y-m-d H:i:s',$v->log_time)); ?>

                                        </td>
                                    </tr>
                                <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                            <?php else: ?>
                                <tr>
                                    <td colspan="7" style="text-align: center;color:#ff0000;">查询数据不存在！</td>
                                </tr>
                            <?php endif; ?>
                            </tbody>
                        </table>
                    </div>
                    <?php echo $pager; ?>

                </div>
            </div>
        </div>
    </div>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('js'); ?>
<!--时间选择插件-->
<script src="<?php echo e(asset('static/js/bootstrap-datetimepicker/moment.min.js')); ?>"></script>
<script src="<?php echo e(asset('static/js/bootstrap-datetimepicker/bootstrap-datetimepicker.min.js')); ?>"></script>
<script src="<?php echo e(asset('static/js/bootstrap-datetimepicker/locale/zh-cn.js')); ?>"></script>
<script>
$('.export-btn').click(function(){
	$('.search-bar').attr('action', "<?php echo e(url('admin/admin_actionlog/export')); ?>");
	$('.search-bar').submit();
})
$('.submit-btn').click(function(){
	$('.search-bar').attr('action', "<?php echo e(url('admin/admin_actionlog/index')); ?>");
	$('.search-bar').submit();
})
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.public.layout', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\phpstudy_pro\WWW\my_admin\resources\views/admin/actionlog/actionlog_index.blade.php ENDPATH**/ ?>